package org.cs.publics.model;
// Generated 2018-12-28 17:39:08 by Hibernate Tools 5.2.3.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 用户参与拼团信息表
 */

/**
 * GroupUser generated by hbm2java
 */
@Entity
@Table(name = "group_user", catalog = "good_fresh")
public class GroupUser implements java.io.Serializable {

	private Integer groupUserId;
	private GroupInfo groupInfoByGroupInfoId;
	private GroupInfo groupInfoByGroupInfoId_1;
	private UserInfo userInfo;
	private Integer groupUserNumber;
	private Date groupUserStartTime;
	private Date groupUserPartTime;
	private Date createTime;
	private Date updateTime;
	private String goodsHoldOne;
	private String goodsHoldTwo;

	public GroupUser() {
	}

	public GroupUser(GroupInfo groupInfoByGroupInfoId, GroupInfo groupInfoByGroupInfoId_1, UserInfo userInfo,
			Integer groupUserNumber, Date groupUserStartTime, Date groupUserPartTime, Date createTime, Date updateTime,
			String goodsHoldOne, String goodsHoldTwo) {
		this.groupInfoByGroupInfoId = groupInfoByGroupInfoId;
		this.groupInfoByGroupInfoId_1 = groupInfoByGroupInfoId_1;
		this.userInfo = userInfo;
		this.groupUserNumber = groupUserNumber;
		this.groupUserStartTime = groupUserStartTime;
		this.groupUserPartTime = groupUserPartTime;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.goodsHoldOne = goodsHoldOne;
		this.goodsHoldTwo = goodsHoldTwo;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "GROUP_USER_ID", unique = true, nullable = false)
	public Integer getGroupUserId() {
		return this.groupUserId;
	}

	public void setGroupUserId(Integer groupUserId) {
		this.groupUserId = groupUserId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "GROUP_INFO_ID")
	public GroupInfo getGroupInfoByGroupInfoId() {
		return this.groupInfoByGroupInfoId;
	}

	public void setGroupInfoByGroupInfoId(GroupInfo groupInfoByGroupInfoId) {
		this.groupInfoByGroupInfoId = groupInfoByGroupInfoId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "GROUP_INFO_ID", insertable = false, updatable = false)
	public GroupInfo getGroupInfoByGroupInfoId_1() {
		return this.groupInfoByGroupInfoId_1;
	}

	public void setGroupInfoByGroupInfoId_1(GroupInfo groupInfoByGroupInfoId_1) {
		this.groupInfoByGroupInfoId_1 = groupInfoByGroupInfoId_1;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USER_INFO_ID")
	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	@Column(name = "GROUP_USER_NUMBER")
	public Integer getGroupUserNumber() {
		return this.groupUserNumber;
	}

	public void setGroupUserNumber(Integer groupUserNumber) {
		this.groupUserNumber = groupUserNumber;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "GROUP_USER_START_TIME", length = 19)
	public Date getGroupUserStartTime() {
		return this.groupUserStartTime;
	}

	public void setGroupUserStartTime(Date groupUserStartTime) {
		this.groupUserStartTime = groupUserStartTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "GROUP_USER_PART_TIME", length = 19)
	public Date getGroupUserPartTime() {
		return this.groupUserPartTime;
	}

	public void setGroupUserPartTime(Date groupUserPartTime) {
		this.groupUserPartTime = groupUserPartTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "GOODS_HOLD_ONE", length = 25)
	public String getGoodsHoldOne() {
		return this.goodsHoldOne;
	}

	public void setGoodsHoldOne(String goodsHoldOne) {
		this.goodsHoldOne = goodsHoldOne;
	}

	@Column(name = "GOODS_HOLD_TWO", length = 25)
	public String getGoodsHoldTwo() {
		return this.goodsHoldTwo;
	}

	public void setGoodsHoldTwo(String goodsHoldTwo) {
		this.goodsHoldTwo = goodsHoldTwo;
	}

}
